﻿using Rug.Osc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    internal class Program
    {
        static void Main(string[] args)
        {
         var  send = new OscSender(IPAddress.Parse("192.168.1.30"), 4682);
            send.Connect();
            float i = -10;
            while (true)
            {
                System.Threading.Thread.Sleep(5);
                i += 0.04f;
               var y = Math.Sin(i);
                send.Send(new OscMessage("/dmx", y));
             
            }
            send.Dispose();
        }
    }
}
